<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="net-gopher.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="net-gopher.examples.html">范例</a></div>
 <div class="up"><a href="book.net-gopher.html">Gopher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="net-gopher.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
  <table class="doctable table">
   <caption><strong>Net_Gopher constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.gopher-document">
      <td><strong><code>GOPHER_DOCUMENT</code></strong></td>
      <td>0</td>
      <td>Standard <em>text/plain</em> document.</td>
     </tr>

     <tr id="constant.gopher-directory">
      <td><strong><code>GOPHER_DIRECTORY</code></strong></td>
      <td>1</td>
      <td>A resource containing a gopher formatted directory listing.</td>
     </tr>

     <tr id="constant.gopher-binhex">
      <td><strong><code>GOPHER_BINHEX</code></strong></td>
      <td>4</td>
      <td>A BinHex encoded binary file.</td>
     </tr>

     <tr id="constant.gopher-dosbinary">
      <td><strong><code>GOPHER_DOSBINARY</code></strong></td>
      <td>5</td>
      <td>A DOS formatted binary archive.</td>
     </tr>

     <tr id="constant.gopher-uuencoded">
      <td><strong><code>GOPHER_UUENCODED</code></strong></td>
      <td>6</td>
      <td>A UUEncoded file.</td>
     </tr>

     <tr id="constant.gopher-binary">
      <td><strong><code>GOPHER_BINARY</code></strong></td>
      <td>9</td>
      <td>A generic binary file.</td>
     </tr>

     <tr id="constant.gopher-info">
      <td><strong><code>GOPHER_INFO</code></strong></td>
      <td>255</td>
      <td>An Informational entry</td>
     </tr>

     <tr id="constant.gopher-http">
      <td><strong><code>GOPHER_HTTP</code></strong></td>
      <td>254</td>
      <td>A reference to an HTTP resource.</td>
     </tr>

     <tr id="constant.gopher-unknown">
      <td><strong><code>GOPHER_UNKNOWN</code></strong></td>
      <td>-1</td>
      <td>
       An unrecognized entry.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="net-gopher.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="net-gopher.examples.html">范例</a></div>
 <div class="up"><a href="book.net-gopher.html">Gopher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
